/*
 * This program is free software: you can redistribute it and/or modify it under
 * the terms of the GNU General Public License as published by the Free Software
 * Foundation, either version 3 of the License, or (at your option) any later
 * version.
 *
 * This program is distributed in the hope that it will be useful, but WITHOUT
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
 * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
 * details.
 *
 * You should have received a copy of the GNU General Public License along with
 * this program. If not, see <http://www.gnu.org/licenses/>.
 */
package org.merak.core.persistence.jdbc.settings;

public class ConnectionDetail {

    //~ Attributes ///////////////////////////////////////////////////////////////
    //****************************************************************************
	private String driver     = null;
	private String driverType = null;
	private String system     = null;
	private String host       = null;
	private String port       = null;
	private String database   = null;
	private String username   = null;
	private String password   = null;

    //~ Methods //////////////////////////////////////////////////////////////////
    //****************************************************************************
	public String getDriver() {
		return this.driver;
	}
	//****************************************************************************
	public String getDriverType() {
		return this.driverType;
	}
	//****************************************************************************
	public String getSystem() {
		return this.system;
	}
	//****************************************************************************
	public String getHost() {
		return this.host;
	}
	//****************************************************************************
	public String getPort() {
		return this.port;
	}
	//****************************************************************************
	public String getDatabase() {
		return this.database;
	}
	//****************************************************************************
	public String getUsername() {
		return this.username;
	}
	//****************************************************************************
	public String getPassword() {
		return this.password;
	}
	//****************************************************************************
	public void setDriver(String driver) {
		this.driver = driver;
	}
	//****************************************************************************
	public void setDriverType(String driverType) {
		this.driverType = "".equals(driverType) ? null : driverType;
	}
	//****************************************************************************
	public void setSystem(String system) {
		this.system = "".equals(system) ? null : system;
	}
	//****************************************************************************
	public void setHost(String host) {
		this.host = "".equals(host) ? null : host;
	}
	//****************************************************************************
	public void setPort(String port) {
		this.port = "".equals(port) ? null : port;
	}
	//****************************************************************************
	public void setPort(int port) {
		this.port = String.valueOf(port);
	}
	//****************************************************************************
	public void setDatabase(String database) {
		this.database = "".equals(database) ? null : database;
	}
	//****************************************************************************
	public void setUsername(String username) {
		this.username = "".equals(username) ? null : username;
	}
	//****************************************************************************
	public void setPassword(String password) {
		this.password = "".equals(password) ? null : password;
	}
	//****************************************************************************

}

